
/**
 * 水果
 */
public class Fruit {

    String id;
    String name;

    Integer price;

    Double discount;


    public double totalPrice(Integer num) {
        return num * price ;
    }

    public double totalPrice(Integer num,double discount) {
        return num * price * discount;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }
}
